<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: register.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."register.php";
include LOCALE.LOCALESET."user_fields.php";

$avloserid=$_GET['avloserid'];

//Koble opp til databasen
$db = mysql_connect($GLOBALS['db_host'], $GLOBALS['db_user'], $GLOBALS['db_password']);
mysql_select_db($GLOBALS['db_name'], $db); 

$query=" SELECT * FROM avloser WHERE avloserid='$avloserid'";
$result=mysql_query($query);
$num1=mysql_numrows($result);

$i=0;
while ($i < $num1) {
	$fornavn=mysql_result($result,$i,"fornavn");
	$etternavn=mysql_result($result,$i,"etternavn");
++$i;
}

$query=" SELECT avloserid FROM avloser WHERE avloserid='$avloserid'";
$result=mysql_query($query);
$num=mysql_numrows($result);

$i=0;
while ($i < $num) {
	$avloserid=mysql_result($result,$i,"avloserid");
++$i;
}

echo "<br></br>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='profil.php?avloserid=$avloserid'><b><---  Tilbake til profil</b></a></p>
<table class='capmain' border='0' cellpadding='0' align='center' width='608px'>

	<tr>
	<th>Egenvurdering</th>
	</tr>
</table>

<table class='imagetable' table border='0' cellpadding='5' align='center'>

<form action='egenvurdering_lagre.php?avloserid=".$avloserid."&sjekk=nei' method='post'>
<input type='hidden' name='ud_avloserid' value='$avloserid' maxlength='30' style='width:200px;'/>

	<tr>
		<th></th>
		<th>Null</th>
		<th>Litt</th>
		<th>Ok</th>
		<th>Bra</th>
		<th></th>
		<th>Nei Takk</th>
		<th>Helst Ikke</th>
		<th>Ok</th>
		<th>Ja Takk</th>
		<th>&Oslash;nsker &aring; l&aelig;re mer</th>
	</tr>
	<tr>
		<th colspan='11'>Sau: </th>
	</tr>
	<tr>
		<th>Foring </th><td><input type='radio' name='sau_foring' value='Null' checked='checked'></td>
						<td><input type='radio' name='sau_foring' value='Litt'></td>
						<td><input type='radio' name='sau_foring' value='Ok'> </td>
						<td><input type='radio' name='sau_foring' value='Bra'></td>
						<th></th>
						<td><input type='radio' name='sau_foring_egen' value='Nei Takk'checked='checked'></td>
						<td><input type='radio' name='sau_foring_egen' value='Ok'></td>
						<td><input type='radio' name='sau_foring_egen' value='Helst Ikke'></td>
						<td><input type='radio' name='sau_foring_egen' value='Ja Takk'></td>
						<td><input type='radio' name='sau_foring_egen' value='lere mer'></td>
	</tr>
	<tr>
		<th>Sanking </th><td><input type='radio' name='sau_sanking' value='Null'checked='checked'></td>
						 <td><input type='radio' name='sau_sanking' value='Litt'></td>
						 <td><input type='radio' name='sau_sanking' value='Ok'></td>
						 <td><input type='radio' name='sau_sanking' value='Bra'></td>
						 <th></th>
						 <td><input type='radio' name='sau_sanking_egen' value='Nei Takk'checked='checked'></td>
						 <td><input type='radio' name='sau_sanking_egen' value='Ok'></td>
						 <td><input type='radio' name='sau_sanking_egen' value='Helst Ikke'></td>
						 <td><input type='radio' name='sau_sanking_egen' value='Ja Takk'></td>
						 <td><input type='radio' name='sau_sanking_egen' value='lere mer'></td>
	</tr>
	<tr>
		<th>Lamming </th><td><input type='radio' name='sau_lamming' value='Null'checked='checked'></td>
						 <td><input type='radio' name='sau_lamming' value='Litt'></td>
						 <td><input type='radio' name='sau_lamming' value='Ok'></td>
						 <td><input type='radio' name='sau_lamming' value='Bra'></td>
						 <th></th>
						 <td><input type='radio' name='sau_lamming_egen' value='Nei Takk'checked='checked'></td>
						 <td><input type='radio' name='sau_lamming_egen' value='Ok'></td>
						 <td><input type='radio' name='sau_lamming_egen' value='Helst Ikke'></td>
						 <td><input type='radio' name='sau_lamming_egen' value='Ja Takk'></td>
						 <td><input type='radio' name='sau_lamming_egen' value='lere mer'></td>
	</tr>
	<tr>
		<th colspan='11'>Storfe:</th>
	</tr>
	<tr>
		<th>Foring </th><td><input type='radio' name='storfe_foring' value='Null'checked='checked'></td>
						<td><input type='radio' name='storfe_foring' value='Litt'></td>
						<td><input type='radio' name='storfe_foring' value='Ok'></td>
						<td><input type='radio' name='storfe_foring' value='Bra'></td>
						<th></th>
						<td><input type='radio' name='storfe_foring_egen' value='Nei Takk'checked='checked'></td>
						<td><input type='radio' name='storfe_foring_egen' value='Ok'></td>
						<td><input type='radio' name='storfe_foring_egen' value='Helst Ikke'></td>
						<td><input type='radio' name='storfe_foring_egen' value='Ja Takk'></td>
						<td><input type='radio' name='storfe_foring_egen' value='lere mer'></td>
	</tr>
	<tr>
		<th>Melking </th><td><input type='radio' name='storfe_melking' value='Null'checked='checked'></td>
						 <td><input type='radio' name='storfe_melking' value='Litt'></td>
						 <td><input type='radio' name='storfe_melking' value='Ok'></td>
						 <td><input type='radio' name='storfe_melking' value='Bra'></td>
						 <th></th>
						 <td><input type='radio' name='storfe_melking_egen' value='Nei Takk'checked='checked'></td>
						 <td><input type='radio' name='storfe_melking_egen' value='Ok'></td>
						 <td><input type='radio' name='storfe_melking_egen' value='Helst Ikke'></td>
						 <td><input type='radio' name='storfe_melking_egen' value='Ja Takk'></td>
						 <td><input type='radio' name='storfe_melking_egen' value='lere mer'></td>
	</tr>
	<tr>
   <th>Melkerobot</th><td><input type='radio' name='melkerobot' value='Null'checked='checked'></td>
						 <td><input type='radio' name='melkerobot' value='Litt'></td>
						 <td><input type='radio' name='melkerobot' value='Ok'></td>
						 <td><input type='radio' name='melkerobot' value='Bra'></td>
						 <th></th>
						 <td><input type='radio' name='melkerobot_egen' value='Nei Takk'checked='checked'></td>
						 <td><input type='radio' name='melkerobot_egen' value='Ok'></td>
						 <td><input type='radio' name='melkerobot_egen' value='Helst Ikke'></td>
						 <td><input type='radio' name='melkerobot_egen' value='Ja Takk'></td>
						 <td><input type='radio' name='melkerobot_egen' value='lere mer'></td>
	</tr>
	<tr>
		<th>Kalving </th><td><input type='radio' name='storfe_kalving' value='Null'checked='checked'></td>
						 <td><input type='radio' name='storfe_kalving' value='Litt'></td>
						 <td><input type='radio' name='storfe_kalving' value='Ok'></td>
						 <td><input type='radio' name='storfe_kalving' value='Bra'></td>
						 <th></th>
						 <td><input type='radio' name='storfe_kalving_egen' value='Nei Takk'checked='checked'></td>
						 <td><input type='radio' name='storfe_kalving_egen' value='Ok'></td>
						 <td><input type='radio' name='storfe_kalving_egen' value='Helst Ikke'></td>
						 <td><input type='radio' name='storfe_kalving_egen' value='Ja Takk'></td>
						 <td><input type='radio' name='storfe_kalving_egen' value='lere mer'></td>
	</tr>
	<tr>
		 <th>Gris:</th><td><input type='radio' name='gris' value='Null'checked='checked'></td>
					   <td><input type='radio' name='gris' value='Litt'></td>
					   <td><input type='radio' name='gris' value='Ok'></td>
					   <td><input type='radio' name='gris' value='Bra'></td>
					   <th></th>
					   <td><input type='radio' name='gris_egen' value='Nei Takk'checked='checked'></td>
					   <td><input type='radio' name='gris_egen' value='Ok'></td>
					   <td><input type='radio' name='gris_egen' value='Helst Ikke'></td>
					   <td><input type='radio' name='gris_egen' value='Ja Takk'></td>
					   <td><input type='radio' name='gris_egen' value='lere mer'></td>
	</tr>
	<tr>
   <th>Fj&aelig;rfe:</th><td><input type='radio' name='fjerfe' value='Null'checked='checked'></td>
						 <td><input type='radio' name='fjerfe' value='Litt'></td>
						 <td><input type='radio' name='fjerfe' value='Ok'></td>
						 <td><input type='radio' name='fjerfe' value='Bra'></td>
						 <th></th>
						 <td><input type='radio' name='fjerfe_egen' value='Nei Takk'checked='checked'></td>
						 <td><input type='radio' name='fjerfe_egen' value='Ok'></td>
						 <td><input type='radio' name='fjerfe_egen' value='Helst Ikke'></td>
						 <td><input type='radio' name='fjerfe_egen' value='Ja Takk'></td>
						 <td><input type='radio' name='fjerfe_egen' value='lere mer'></td>
	</tr>
		<tr>
	<th colspan='11'>Traktor:</th>
	</tr>
	<tr>
		<th>Enkel</th><td><input type='radio' name='traktor_enkel' value='Null'checked='checked'></td>
						 <td><input type='radio' name='traktor_enkel' value='Litt'></td>
						 <td><input type='radio' name='traktor_enkel' value='Ok'></td>
						 <td><input type='radio' name='traktor_enkel' value='Bra'></td>
						 <th></th>
						 <td><input type='radio' name='traktor_enkel_egen' value='Nei Takk'checked='checked'></td>
						 <td><input type='radio' name='traktor_enkel_egen' value='Ok'></td>
						 <td><input type='radio' name='traktor_enkel_egen' value='Helst Ikke'></td>
						 <td><input type='radio' name='traktor_enkel_egen' value='Ja Takk'></td>
						 <td><input type='radio' name='traktor_enkel_egen' value='Onsker lere mer'></td>
	</tr>
	<tr>
		<th>Allsidig</th><td><input type='radio' name='traktor_allsidig' value='Null'checked='checked'></td>
						 <td><input type='radio' name='traktor_allsidig' value='Litt'></td>
						 <td><input type='radio' name='traktor_allsidig' value='Ok'></td>
						 <td><input type='radio' name='traktor_allsidig' value='Bra'></td>
						 <th></th>
						 <td><input type='radio' name='traktor_allsidig_egen' value='Nei Takk'checked='checked'></td>
						 <td><input type='radio' name='traktor_allsidig_egen' value='Ok'></td>
						 <td><input type='radio' name='traktor_allsidig_egen' value='Helst Ikke'></td>
						 <td><input type='radio' name='traktor_allsidig_egen' value='Ja Takk'></td>
						 <td><input type='radio' name='traktor_allsidig_egen' value='Onsker lere mer'></td>
	</tr>
	<tr>
   <th>Motorsag:</th><td><input type='radio' name='motorsag' value='Null'checked='checked'></td>
						 <td><input type='radio' name='motorsag' value='Litt'></td>
						 <td><input type='radio' name='motorsag' value='Ok'></td>
						 <td><input type='radio' name='motorsag' value='Bra'></td>
						 <th></th>
						 <td><input type='radio' name='motorsag_egen' value='Nei Takk'checked='checked'></td>
						 <td><input type='radio' name='motorsag_egen' value='Ok'></td>
						 <td><input type='radio' name='motorsag_egen' value='Helst Ikke'></td>
						 <td><input type='radio' name='motorsag_egen' value='Ja Takk'></td>
						 <td><input type='radio' name='motorsag_egen' value='lere mer'></td>
	</tr>
	<tr>
   <th>Gj&aelig;rding:</th><td><input type='radio' name='gjerding' value='Null'checked='checked'></td>
						 <td><input type='radio' name='gjerding' value='Litt'></td>
						 <td><input type='radio' name='gjerding' value='Ok'></td>
						 <td><input type='radio' name='gjerding' value='Bra'></td>
						 <th></th>
						 <td><input type='radio' name='gjerding_egen' value='Nei Takk'checked='checked'></td>
						 <td><input type='radio' name='gjerding_egen' value='Ok'></td>
						 <td><input type='radio' name='gjerding_egen' value='Helst Ikke'></td>
						 <td><input type='radio' name='gjerding_egen' value='Ja Takk'></td>
						 <td><input type='radio' name='gjerding_egen' value='lere mer'></td>
	</tr>
	<tr>
   <th>Fj&oslash;rvask:</th><td><input type='radio' name='fjervask' value='Null'checked='checked'></td>
						 <td><input type='radio' name='fjervask' value='Litt'></td>
						 <td><input type='radio' name='fjervask' value='Ok'></td>
						 <td><input type='radio' name='fjervask' value='Bra'></td>
						 <th></th>
						 <td><input type='radio' name='fjervask_egen' value='Nei Takk'checked='checked'></td>
						 <td><input type='radio' name='fjervask_egen' value='Ok'></td>
						 <td><input type='radio' name='fjervask_egen' value='Helst Ikke'></td>
						 <td><input type='radio' name='fjervask_egen' value='Ja Takk'></td>
						 <td><input type='radio' name='fjervask_egen' value='lere mer'></td>
	</tr></TABLE>
	<table class='imagetable' border='0' cellpadding='5' align='center'>

	<tr>
		<th align='center'><input type='submit' value='Lagre' /></th>
	</tr></form>
	</table>";

require_once THEMES."templates/footer.php";
?>

